import { createGetService } from "./utils";

export const getCategories = () => [
  { label: '全部商品', key: 0 },
  { label: '手机', key: 1 },
  { label: '电视', key: 2 },
  { label: '笔记本 平板', key: 3 },
  { label: '家电', key: 4 },
  { label: '出行 穿戴', key: 5 },
  { label: '智能 路由器', key: 6 },
  { label: '电源 配件', key: 7 },
  { label: '健康 儿童', key: 8 },
  { label: '耳机 音响', key: 9 },
  { label: '生活 箱包', key: 10 },
];

export const getBanner = createGetService(`/banner/getBannerList`);

export const getProducts = createGetService(`/product/getProductList`);

export const getProductDetail = createGetService(`/product/productDetail`);